import axios from "axios";

const http2 = axios.create({
    baseURL: 'https://www.zhihu.com/api/v4/candidate-quesitons?type=hot&include=data%5B*%5D.question.answer_count%2Cfollower_count%2Cvisit_count%2Cdetail%2Cexcerpt%2Crelationship.is_following&limit=20&offset=0',
    timeout: 7000,
})
http2.interceptors.response.use(function (response) {
    return response.data;
}, function (error) {
    return Promise.reject(error);
});
export default http2;